x11/xi2: Report touchpads as TOUCHPAD, not MOUSE
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Fri, 16 Mar 2018 07:40:40 +0000 (15:40 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Mon, 19 Mar 2018 04:08:29 +0000 (12:08 +0800)
commit0ad27cc5985664437c022d42e433734742454f05
tree2c1ed4fc3af47a3318543d5aff663e78a69ae077
parent1a1373779f87ce928a45a9371512d207445f615f
x11/xi2: Report touchpads as TOUCHPAD, not MOUSE

is_touchpad_device() for XI2 was hardcoded to look for libinput only.
Extend it slightly to correctly identify other Xorg touchpad drivers.

https://gitlab.gnome.org/GNOME/gtk/issues/97
gdk/x11/gdkdevicemanager-xi2.c
tests/testinput.c